<script type="text/javascript" src="<?php echo yii::app()->theme->baseUrl ?>/assets/js/plupload-2.1.2/js/plupload.full.min.js"></script>
<script type="text/javascript" src="<?php echo yii::app()->theme->baseUrl ?>/assets/js/plupload-2.1.2/js/common.js"></script>
<div class="container merchantssettled">
	<div class="process_img">
		<img src="">
	</div>
	<div class="merchantssettled_form">
		<div class="title">企业信息填写</div>
		<?php $objForm = $this->beginWidget('ext.YiiBooster.src.widgets.TbActiveForm',array('id'=>'SubmitForm',)); ?>	
		
		<?php //echo $objForm->errorSummary($model); ?>


		<?php  echo $objForm->textFieldGroup($model, 'CompanyName', array('append' => '请确保填写正确，与公司营业执照公司名完全一致','appendOptions' => array('class' => 'block')));   ?>
		<?php  echo $objForm->textFieldGroup($model, 'RegistrationNo');   ?>
		
		<div class="form-group">
			<label class="control-label required" for="MerchantsSettledModel_StartTime">营业执照有效期 <span class="required">*</span></label>
			<div class="input_form">
				<?php  echo $objForm->textField($model, 'StartTime', array('class' => 'input_1', 'placeholder' => '开始时间'));   ?>
				-
				<?php  echo $objForm->textField($model, 'EndTime', array('class' => 'input_1', 'placeholder' => '开始时间'));   ?>	
				<?php echo $objForm->error($model, 'StartTime')  ?>
				<?php echo $objForm->error($model, 'EndTime')  ?>
			</div>		
		</div>

		<?php  echo $objForm->textFieldGroup($model, 'Location');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'RegisteredCapital', array('append' => '单位(万元)'));   ?>
		<?php  echo $objForm->textAreaGroup($model, 'ScopeBusiness', array('append' => '提示：只接受童装、童鞋、玩具、婴童用品、孕妇装等，暂不接受食品类。', 'appendOptions' => array('class' => 'block')));   ?>
		<?php  echo $objForm->textFieldGroup($model, 'FullName');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'Address');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'MobilePhone');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'FaxNumber');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'CompanyUrl');   ?>
		<?php  echo $objForm->textAreaGroup($model, 'BrandAgent');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'TaobaoUrl');   ?>


		<div class="title">资料上传<span>图片尺寸需小于1280px * 1280px</span></div>



		<?php  echo $objForm->fileFieldGroup($model, 'BusinessLicenseImg');   ?>
		<?php  echo $objForm->fileFieldGroup($model, 'OrganizationImg');   ?>
		<?php  echo $objForm->fileFieldGroup($model, 'TaxRegistrationImg');   ?>
		<?php  echo $objForm->fileFieldGroup($model, 'PositiveIDImg');   ?>
		<?php  echo $objForm->fileFieldGroup($model, 'ReverseIDImg');   ?>


		<div class="title">业务负责人信息</div>
		<p>该负责人将是贝贝网业务沟通的首要对接人，请保证联系信息真实有效！</p>

		<?php  echo $objForm->textFieldGroup($model, 'HeadName');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'HeadPosition');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'HeadCardID');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'HeadMobilePhone');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'HeadQQ');   ?>
		<?php  echo $objForm->textFieldGroup($model, 'HeadEmail');   ?>


		<div class="form-group button"><button>提交信息</button></div>
		<div class="bar_message">
			<div class="contact">
	            <div class="by-qq">
	                <span>咨询QQ：</span>
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1206666868&amp;site=qq&amp;menu=yes" class="qq" rel="nofollow" _orighref="http://wpa.qq.com/msgrd?v=3&amp;uin=1206666868&amp;site=qq&amp;menu=yes" _tkworked="true">
        <img src="<?php echo yii::app()->theme->baseUrl ?>/assets/images/qq-socre.gif">
                        </a>	            </div>
	            <div class="by-tel" style="padding-top: 10px">
	                咨询电话：1111111111111
	            </div>
	        </div>


			<div class="tips">
	            <div class="tips-info">
	                入驻提示:
	            </div>
	            <ul>
	                <li>1.<span>妈咪街妈咪街妈咪街妈咪街妈咪街妈咪街</span></li>
	                <li>2.<span>妈咪街妈咪街妈咪街妈咪街妈咪街妈咪街</span></li>
	                <li>3.<span>妈咪街妈咪街妈咪街妈咪街妈咪街妈咪街</span></li>
	            </ul>
        	</div>	        			
		</div>
	</div>


	<?php $this->endWidget(); ?>
</div>


<script type="text/javascript">
	/*定义图片处理的一些全局变量 路径等*/
	var HostUrl = '<?php echo yii::app()->params["hostimg"]   ?>';
	var savePath = 'merchantssettled/<?php echo yii::app()->user->id  ?>/';
	var deleteUrl = '<?php echo $this->createUrl("/user/MerchantsSettled/deleteImg") ?>';
	var uploadUrl = '<?php echo $this->createUrl("/user/MerchantsSettled/upload") ?>';  /*上传图片URL*/
	var flash_swf_url = '<?php echo Yii::app()->theme->baseUrl; ?>/assets/plug/plupload-2.1.2/js/Moxie.swf';;
	var silverlight_xap_url = '<?php echo Yii::app()->theme->baseUrl; ?>/assets/plug/plupload-2.1.2/js/Moxie.xap';

	saveImg('MerchantsSettledModel_BusinessLicenseImg', 'MerchantsSettledModel[BusinessLicenseImg]', savePath, false);

</script>